﻿module Sustainalytics.Charts {
    export class MapChartOptions {
        constructor(
            public dataProvider: MapDataProvider,
            public legend:MapLegend
            ) {
        }
    }


    export class MapDataProvider {

        constructor(public map: string,
            public images: MapImageLocation[]) {
        }


    }


    export class MapLegend {
        constructor(
            public width: number,
            public marginRight: number,
            public marginLeft: number,
            public equalWidths: boolean,
            public maxColumns: number,
            public backgroundAlpha: number,
            public backgroundColor: string,
            public borderColor: string,
            public borderAlpha:number,
            public right: number,
            public horizontalGap: number,
            public switchable: boolean,
            public data: MapLegendData[],
            public position:string
            ) {
            
        }
    }

    export class MapLegendData {
        constructor(
            public title: string,
            public color:string
            ) {
            
        }
    }

    export class MapImageLocation {
        constructor(public id: string,
            public color: string,
            public type: string,
            public svgPath:string,
            public latitude: number,
            public longitude: number,
            public scale: number,
            public title: string,
            public description: string) {
        }
    
    }
}
 